package com.agent.platform.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("alert_rule")
public class AlertRule {
    
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private String ruleId;
    private String ruleName;
    private String metricName;
    private String conditionExpr;
    private BigDecimal threshold;
    private Integer duration;
    private String severity;
    private String notifyChannels;
    private String status;
    
    @TableLogic
    private Integer deleted;
    
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
